package cn.tedu.tourism.room.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.util.Date;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class Room {

    @ApiModelProperty(value = "房间id")
    Long id;
    @ApiModelProperty(value = "酒店id")
    Long hotelId;
    @ApiModelProperty(value = "房间类型")
    String roomType;
    @ApiModelProperty(value = "房间价格")
    Double pricePerNight;
    @ApiModelProperty(value = "房间描述")
    String description;
    @ApiModelProperty(value = "房间状态")
    String status;
    @ApiModelProperty(value = "房间图片")
    String imgUrl;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    Date createTime;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    Date updateTime;
    @ApiModelProperty(value = "剩余房间数")
    Integer num;
    @ApiModelProperty(value = "房间可住人数")
    Integer perNum;
    @ApiModelProperty(value = "是否含早餐")
    String breakfast;
}
